<?php

namespace Database\Factories;

use App\Models\Admin;
use App\Models\BlindCate;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Blind>
 */
class BlindFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'name' => fake()->name(),
            'description' => fake()->sentence(),
            'url' => fake()->imageUrl(300, 300),
            'price' => fake()->randomFloat(2, 0, 100),
            'admin_id' => Admin::inRandomOrder()->first()->id,
            'blind_cate_id' => BlindCate::inRandomOrder()->first()->id,
            // 'blind_type' => fake()->word(),
            'tend_time' => fake()->dateTime()
        ];
    }
}
